Minimum Number of Operations to Make Array Empty